import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name:'login',
    component: () => import('@/views/login/index.vue'),
  },
  {
    path: '/businessCommittee',
    component: () => import('@/views/layout.vue'),
    children:[
      {
        path: '',
        name:'businessCommittee',
        component: () => import('@/views/businessCommittee/index.vue'),
      },
      {
        path: 'busComtUser',
        name:'busComtUser',
        component: () => import('@/views/businessCommittee/pages/user.vue'),
      },{
        path: 'eventNode',
        name:'eventNode',
        component: () => import('@/views/businessCommittee/pages/eventNode.vue'),
      },
    ]
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

// router.beforeEach((to, from, next) => {
// 	next();
// });

export default router